<div class="navbar">
	<div class="navbar-inner">
		<div class="navbar-container">
			<!-- Navbar Barnd -->
			<div class="navbar-header pull-left">
				<a href="#" class="navbar-brand">
					<img src="<?=$tpl_dir?>assets/img/soft_logo.png" alt="软件系" />
					<?=$site->name?>
				</a>
			</div>
			<!-- /Navbar Barnd -->
			<!-- Account Area and Settings --->
			<div class="navbar-header pull-right">
				<ul class="list-inline">
					<li id="rest_time" style="text-shadow: 1px 1px 0px gray;"></li>
					<li>班级：<?=sess('cname')?></li>
					<li>学号<?=sess('sid')?> 姓名：<?=sess('sname')?></li>
				</ul>
			</div>
			<!-- /Account Area and Settings -->
		</div>
	</div>
</div>
<script>
var time = <?=$time;?>;	//取得服务器端离考试结束的秒数
if( time != -1 ){
	var r = setInterval( function(){
		if( time >= 0 ){
			var m = parseInt( time / 60 );
			var s = time - m * 60;
			$( '#rest_time' ).html( '剩余时间：' + m + '分' + s + '秒' );
			time--;
		}else{
			handin();
		}
	}, 1000 );
}
</script>